package com.linkage.usercenter.dao;

import com.linkage.usercenter.pojo.entity.DptSubInfo;
import com.linkage.usercenter.pojo.vo.DptAuditVo;
import com.linkage.usercenter.pojo.vo.PersonAuditVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DptSubInfoMapper {
    int deleteByPrimaryKey(String dptCode);

    int insert(DptSubInfo record);

    int insertSelective(DptSubInfo record);

    DptSubInfo selectByPrimaryKey(String dptCode);

    int updateByPrimaryKeySelective(DptSubInfo record);

    int updateByPrimaryKey(DptSubInfo record);

    List<DptAuditVo> queryAuditList(@Param("status")String status, @Param("dptCode") String dptCode);

    List<PersonAuditVo> queryPersonAuditList(@Param("status")String status);
    PersonAuditVo queryPersonAuditInfo(@Param("userCode") String userCode);


    List<DptSubInfo> queryDObyParentCode(String dptCode);

    List<String> queryCodebyParentCode(String dptCode);

    int selectRecordNumByDptCode(String dptCode);
}